package com.ruoyi.vplat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 vplat_device
 * 
 * @author ruoyi
 * @date 2024-04-29
 */
public class VplatDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 网关id */
    @Excel(name = "网关id")
    private String gatewayId;

    /** 父设备id */
    @Excel(name = "父设备id")
    private String parentId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备ip */
    @Excel(name = "设备ip")
    private String ip;

    /** 设备端口 */
    @Excel(name = "设备端口")
    private String port;

    /** 设备用户名 */
    @Excel(name = "设备用户名")
    private String username;

    /** 设备用户密码 */
    @Excel(name = "设备用户密码")
    private String password;

    /** 设备厂家 */
    @Excel(name = "设备厂家")
    private String factory;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String type;

    /** 信令协议类型 */
    @Excel(name = "信令协议类型")
    private String protocol;

    /** 设备经度 */
    @Excel(name = "设备经度")
    private String longitude;

    /** 设备纬度 */
    @Excel(name = "设备纬度")
    private String latitude;

    /** 设备地址 */
    @Excel(name = "设备地址")
    private String address;

    /** 在线状态 0离线1在线 */
    @Excel(name = "在线状态 0离线1在线")
    private Long online;

    /** 激活状态 0正常 1停用 */
    @Excel(name = "激活状态 0正常 1停用")
    private String status;

    /** 数据状态  0代表存在 2代表删除 */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setGatewayId(String gatewayId) 
    {
        this.gatewayId = gatewayId;
    }

    public String getGatewayId() 
    {
        return gatewayId;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setFactory(String factory) 
    {
        this.factory = factory;
    }

    public String getFactory() 
    {
        return factory;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setProtocol(String protocol) 
    {
        this.protocol = protocol;
    }

    public String getProtocol() 
    {
        return protocol;
    }
    public void setLongitude(String longitude) 
    {
        this.longitude = longitude;
    }

    public String getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(String latitude) 
    {
        this.latitude = latitude;
    }

    public String getLatitude() 
    {
        return latitude;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setOnline(Long online) 
    {
        this.online = online;
    }

    public Long getOnline() 
    {
        return online;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gatewayId", getGatewayId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("ip", getIp())
            .append("port", getPort())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("factory", getFactory())
            .append("type", getType())
            .append("protocol", getProtocol())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("address", getAddress())
            .append("online", getOnline())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
